package com.usian.usianleadonewsuser.controller;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.user.dtos.AuthDto;
import com.usian.usianleadonewsuser.service.AuthService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth/api")
@Api(value = "用户审核",tags = "login",description ="用户审核api" )
public class AuthController implements com.usian.apis.service.user.AuthController {

    @Autowired
    private AuthService authService;

    @ApiOperation(value = "用户审核查询",notes = "用户审核查询")
    @RequestMapping("list")
    @Override
    public ResponseResult findnameByidpage(@RequestBody AuthDto authDto) {
        return authService.findnameByidpage(authDto);
    }

    @ApiOperation(value = "用户审核通过",notes = "用户审核通过")
    @RequestMapping("authPass")
    @Override
    public ResponseResult authPass(@RequestBody AuthDto authDto) {
        return authService.authPass(authDto);
    }

    @ApiOperation(value = "用户审核驳回",notes = "用户审核驳回")
    @RequestMapping("authFail")
    @Override
    public ResponseResult authFail(@RequestBody AuthDto authDto) {
        return authService.authFail(authDto);
    }
}
